package com.retail.shop.mapper;

import com.retail.core.common.CommonMapper;
import com.retail.core.entity.result.Result;
import com.retail.shop.entity.vo.RetailAdminShopVo;
import com.retail.shop.entity.request.RetailAdminShopRequest;
import com.retail.system.entity.vo.AdminVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* 用户管理单位 Mapper
* @author Administrator
*/
@Mapper
public interface RetailAdminShopMapper extends CommonMapper<RetailAdminShopRequest,RetailAdminShopVo> {
    Integer examineVerify(@Param("request") RetailAdminShopRequest request);

    RetailAdminShopVo getModelByAdminIdAndShopId(@Param("adminId") Long adminId, @Param("shopId") Long shopId);

    AdminVo getModelByShopId(@Param("shopId") Long shopId);

    Integer findModelsCountByAdminIdAndUpgradeDays(@Param("adminId")Long adminId, @Param("upgradeDay") Long upgradeDay);

    Integer deleteByShopId(@Param("shopId") Long shopId);
}
